package com.ruoyi.other.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * 城市列表对象 hup_region
 *
 * @author ruoyi
 * @date 2025-04-26
 */
@Data
public class Region extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;

    /**
     * 父id
     */
    @Excel(name = "父id")
    private Integer pid;

    /**
     * 简称
     */
    @Excel(name = "简称")
    private String shortname;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 全称
     */
    @Excel(name = "全称")
    private String mergerName;

    /**
     * 层级 1 2 3 省市区县
     */
    @Excel(name = "层级 1 2 3 省市区县")
    private Integer level;

    /**
     * 拼音
     */
    @Excel(name = "拼音")
    private String pinyin;

    /**
     * 长途区号
     */
    @Excel(name = "长途区号")
    private String code;

    /**
     * 邮编
     */
    @Excel(name = "邮编")
    private String zipCode;

    /**
     * 首字母
     */
    @Excel(name = "首字母")
    private String first;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private String lng;

    /**
     * 纬度
     */
    @Excel(name = "纬度")
    private String lat;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Region> children;
}
